package com.njbw.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.njbw.entity.PageResponse;
import com.njbw.user.entity.po.SysUserPo;
import com.njbw.user.entity.req.SysUserReq;

import java.util.List;
import java.util.Map;

/**
 * (SysUserPo)表服务接口
 *
 * @author makejava
 * @since 2023-11-28 18:18:51
 */
public interface SysUserService extends IService<SysUserPo> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SysUserPo queryById(Long id);

    /**
     * 分页查询
     *
     * @return 查询结果
     */
    PageResponse<SysUserPo> queryByPage(SysUserReq sysUserReq);

    List<SysUserPo> queryAll(SysUserPo sysUserPo);

    /**
     * 新增数据
     *
     * @param SysUserPo 实例对象
     * @return 实例对象
     */
    boolean insert(SysUserPo SysUserPo);

    /**
     * 修改数据
     *
     * @param SysUserPo 实例对象
     * @return 实例对象
     */
    boolean update(SysUserPo SysUserPo);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    Long queryCount(Map<String, Object> conditions);

    List<SysUserPo> queryByExport(Map<String, Object> conditions);
}
